<?php

namespace App\Http\Admin\Controllers\Media\Wtt;

use App\Http\Admin\Services\Media\Wtt\MediaService;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;


class MediaController extends Controller
{
    protected $service;
    public function __construct(MediaService $service)
    {
        $this->service = $service;
    }

    public function index()
    {
        return view('media.wtt');
    }

    public function wttData(Request $request)
    {
        $conditions = $request->all();

        $result = $this->service->wttData($conditions);

        return res('ok',$result);
    }

}